import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/views/layout'
import ForRouter from '@/views/layout/ForRouter'

Vue.use(Router)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
//通用路由表
export const commonRouter = [
  {
    path: '',
    name: 'home',
    redirect: '/home',
    hidden: true,
    component: () => import('@/views/home/index'),
  },
  {

    path: '/login',
    name: 'login',
    hidden: true,
    component: () => import('@/views/login/index')
  },
  {
    path: '/404',
    hidden: true,
    component: () => import('@/views/errorPage/404'),
  },
]

//需要权限验证的路由表
export const roleRouter = [
  {
    path: '/home',
    name: 'home',
    hidden: true,
    meta: { title: '首页', icon: '', key: 'home' },
    component: () => import('@/views/home/index'),
  },
  {
    path: '/integratedWindow',
    name: 'integratedWindow',
    component: Layout,
    meta: { title: '综合窗口', icon: '', key: 'zhck' },
    children: [
      {
        path: 'index',
        name: 'integratedSearch',
        meta: { title: '综合查询', icon: 'star', noCache: true, parentUrl: '/integratedWindow', key: 'zhck' }
      },
      {
        path: 'integratedAccept',
        name: 'integratedAccept',
        meta: { title: '综合受理', icon: 'star', noCache: true, parentUrl: '/integratedWindow', key: 'zhck' },
        component: () => import('@/views/acceptanceTasks/index'),
      },
      {
        path: '/checkzhbox',
        name: "checkzhbox",
        hidden: true,
        meta: { title: "查看", noCache: true, parentUrl: '/integratedAccept' },
         component: () => import('@/views/acceptanceTasks/components/detail/index')
      },
      {
        path: 'unifySend',
        name: 'unifySend',
        meta: { title: '统一发件', icon: 'star', noCache: true, parentUrl: 'integratedWindow', key: 'zhck' }
      },
      {
        path: 'caseCorrection',
        name: 'caseCorrection',
        meta: { title: '案件补正', icon: 'star', noCache: true, parentUrl: 'integratedWindow', key: 'zhck' }
      },
    ]
  },
  {
    path: '/businessApproval',
    name: 'businessApproval',
    component: Layout,
    meta: { title: '业务审批', icon: 'star', key: 'ywsp' },
    children: [
      {
        path: 'index',
        name: '综合查询',
        meta: { title: '综合查询', icon: 'zonghechaxun', key: 'ywsp' },
      },
      {
        path: 'todoBox',
        name: 'todoBox',
        meta: { title: '待办箱', icon: 'daiban', parentUrl: '/businessApproval' },
        component: () => import('@/views/businessApproval/todoBox/index'),
      },
      {
        path: 'checkdbx',
        component: () => import('@/views/businessApproval/components/detail/index'),
        name: "checkdbx",
        hidden: true,
        meta: { title: "查看", name: "待办箱", icon: "daiban", noCache: true, parentUrl: '/todoBox' }
      },
      {
        path: 'didBox',
        name: '已办箱',
        meta: { title: '已办箱', icon: 'yiban', key: 'ywsp' },
        component: () => import('@/views/businessApproval/didBox/index'),
      },

      //已办箱的查看
      {
        path: '/didBox/ck',
        component: () =>
          import('@/views/businessApproval/components/detail/index'),
        name: '查看',
        meta: { title: '查看', name: '已办箱', icon: 'yiban', noCache: true, parentUrl: '/didBox' },
        hidden: true
      },

      {
        path: 'finishBox',
        name: '办结箱',
        meta: { title: '办结箱', icon: 'banjie', key: 'ywsp' },
        component: () => import('@/views/businessApproval/finishBox/index'),
      },
      // 办结箱的查看
      {
        path: '/finishBox/ck',
        component: () =>
          import('@/views/businessApproval/components/detail/index'),
        name: '查看',
        meta: { title: '查看', name: '办结箱', icon: 'banjie', noCache: true, parentUrl: '/finishBox' },
        hidden: true
      },
      {
        path: 'urgeBox',
        name: '督办箱',
        meta: { title: '督办箱', icon: 'duban', key: 'ywsp' },
        component: () => import('@/views/businessApproval/urgeBox/index'),
      },
      {
        path: 'collectBox',
        name: '收藏箱',
        meta: { title: '收藏箱', icon: 'star', key: 'ywsp' },
        component: () => import('@/views/businessApproval/collectBox/index'),
      },
    ]
  },
  {
    path: '/personalCenter',
    name: 'personalCenter',
    component: Layout,
    meta: { title: '个人中心', icon: '', key: 'personalCenter' },
    children: [
      {
        path: 'index',
        name: 'zyly',
        meta: { title: '主要领域', icon: 'star', noCache: true, key: 'personalCenter' }
      },
      {
        path: 'backlog',
        name: 'backlog',
        meta: { title: '我的待办', icon: 'star', noCache: true, key: 'personalCenter' }
      },
      {
        path: 'myResource',
        name: 'myResource',
        meta: { title: '我的资源', icon: 'star', noCache: true, key: 'personalCenter' }
      },
    ]
  },
  // {
  //   path: '/backgoundmanage',
  //   name: 'htgl',
  //   component: Layout,
  //   meta: { title: '后台管理', icon: '', key: 'htgl' },
  //   children: [
  //     {
  //       path: 'formmanagement',
       
  //       name: 'bdgl',
  //       meta: { title: '表单管理', icon: 'star', noCache: true, key: 'htgl' },
  //       hidden:true
        
  //     }
  //   ]
  // },

  // {
  //   path: '/formmanagement',
  //   name: 'htgl',
  //   component: Layout,
  //   meta: { title: '后台管理', icon: '', key: 'htgl' },
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'bdgl',
  //       meta: { title: '表单管理', icon: 'star', noCache: true, key: 'htgl' }
  //     }
  //   ]
  // },
  
  {
    path: '/electronicSignature',
    name: 'electronicSignature',
    component: Layout,
    meta: { title: '电子签章', icon: '', noCache: true, key: 'dzqz' },
    children: [
      {
        path: 'index',
        name: 'dzqz',
        meta: { title: '电子签章', icon: 'star', noCache: true, key: 'dzqz' }
      }
    ]
  },
  {
    path: '/ectronicdata',
    name: 'ectronicdata',
    component: Layout,
    meta: { title: '电子资料', icon: '', noCache: true, key: 'dzzl' },
    children: [
      {
        path: 'index',
        name: 'dzzl',
        meta: { title: '电子资料', icon: 'star', noCache: true, key: 'dzzl' }
      }
    ]
  },
  // {
  //   path: '/formmanagement',
  //   name: 'bdgl',
  //   component: Layout,
  //   meta: { title: '表单管理', icon: '', noCache: true, key: 'bdgl' },
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'bdgl',
  //       meta: { title: '表单管理', icon: 'star', noCache: true, key: 'bdgl' },
  //       hidden:true
  //     },
  //     {
  //             path: '/businesstableIndex/index',
  //             name: 'ywsygl',
  //             component: () => import('@/views/formbus/businesstable/index'),
  //             meta: { title: '业务实体管理', icon: 'star', noCache: true,key: 'bdgl'}
  //     },

  //   ]
  // },
  {
    path: '/formmanagement',
    redirect: '/formbus/businesstable/index',
    name: 'bdgl',
    component: Layout,
    meta: { title: '表单管理', icon: '', noCache: true, key: 'bdgl' },
    children: [
      {
        path: '/formbus/design/app',
        name: 'formModelerIndex',
        meta: { title: '表单设计器', icon: 'daiban', key: 'bdgl', noCache: true },
        component: () => import('@/views/formbus/design/app'),
        hidden: true
      },
      {
        path: '/formbus/design/modeler',
        component: () => import('@/views/formbus/design/modeler'),
        name: 'formModeler',
        meta: {title: '表单设计器', icon: 'daiban', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/design/versionManager',
        component: () => import('@/views/formbus/design/versionManager'),
        name: 'formVersionManager',
        meta: {title: '版本管理', icon: 'daiban', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/businesstable/index',
        name: 'ywst',
        component: () => import('@/views/formbus/businesstable/index'),
        meta: { title: '业务实体管理', icon: 'star', noCache: true}
      },
      {
        path: '/formbus/businesstable/inner/index',
        component: () => import('@/views/formbus/businesstable/inner/index'),
        name: 'businessTableInnerAdd',
        meta: {title: '新增业务实体', icon: 'daiban', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/businessobject/index',
        component: () => import('@/views/formbus/businessobject/index'),
        name: 'ywobj',
        meta: {title: '业务对象', icon: 'star', key: 'bdgl', noCache: true}
      },
      
      {
        path: '/form/design/index',
        component: () => import('@/views/formbus/design/index'),
        name: 'designForm',
        meta: {title: '表单模型', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/customDialog/index',
        component: () => import('@/views/formbus/customdialog/index'),
        name: 'customDialogList',
        meta: {title: '对话框管理', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/formbus/businessobject/add',
        component: () => import('@/views/formbus/businessobject/add'),
        name: 'businessObjAdd',
        meta: {title: '新增业务对象', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/customdialog/add',
        component: () => import('@/views/formbus/customdialog/add'),
        name: 'customdialogAdd',
        meta: {title: '对话框', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/gen',
        component: () => import('@/views/gen/index'),
        name: 'gen',
        meta: {title: '代码生成', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/gen/edit',
        component: () => import('@/views/gen/editTable'),
        name: 'genEdit',
        meta: {title: '代码生成', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/bpm/url/index',
        component: () => import('@/views/bpm/url/index'),
        name: 'urlIndex',
        meta: {title: '外挂表单', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/design/printTemplatesx',
        component: () => import('@/views/formbus/printTemplates/index'),
        name: 'printTemplatesx',
        meta: {title: '打印模板', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/design/PrintTemplateDetail',
        component: () => import('@/views/formbus/printTemplates/PrintTemplateDetail'),
        name: 'crmPrintDetail',
        hidden: true,
        meta: {title: '打印模板', icon: 'star', key: 'bdgl', noCache: true}
      },

    ]
  },
  {
    path: '/yypz',
    name: 'yypz',
    component: Layout,
    meta: { title: '应用配置', icon: '', noCache: true, key: 'yypz' },
    children: [
      {
        path: 'index',
        name: 'ewdtpz',
        meta: { title: '二维地图配置', icon: 'star', noCache: true, key: 'ewdtpz' }
      },
      {
        path: 'swdtpz',
        name: 'swdtpz',
        meta: { title: '三维地图配置', icon: 'star', noCache: true, key: 'swdtpz' }
      },
    ]
  },
  {
    path: '/processmanagement',
    name: 'processmanagement',
    component: Layout,
    meta: { title: '流程管理', icon: '', noCache: true, key: 'lcgl' },
    children: [
      {
        path: 'index',
        name: 'lcgl',
        meta: { title: '流程管理', icon: 'star', noCache: true, key: 'lcgl' }
      },
      {
        path: 'bdgj',
        name: 'bdgj',
        meta: { title: '表单挂接', icon: 'star', noCache: true, key: 'lcgl' }
      },
      {
        path: 'ywpz',
        name: 'ywpz',
        meta: { title: '业务配置', icon: 'star', noCache: true, key: 'lcgl' }
      },
    ]
  },



  // ---------------------------------------------------------

  // {
  //   path: '/task',
  //   redirect: '/modelIndex',
  //   component: Layout,
  //   name: "流程管理",
  //   key: "lcpt",
  //   parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
  //   children: [
      
  //     {
  //       path: '/finance/index',
  //       name: '流程辅助功能',
  //       component: ForRouter,
  //       children: [
  //         {
  //           path: '/modelIndex',
  //           component: () => import('@/views/bpm/model/index'),
  //           name: 'modelIndex',
  //           meta: {title: '模型管理', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         // {
  //         //   path: '/bpm/model/v4',
  //         //   component: () => import('@/views/bpm/model/v4'),
  //         //   name: 'v4Index',
  //         //   meta: {title: '业务流程设计器', icon: '', noCache: true}
  //         // },
  //         {
  //           path: '/bpm/runtime/revisit',
  //           component: () => import('@/views/bpm/revisit/index'),
  //           name: 'revisitIndex',
  //           meta: {title: '流程回放', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/btn/index',
  //           component: () => import('@/views/bpm/btn/index'),
  //           name: 'span',
  //           meta: {title: '审批按钮', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/variable/variable/index',
  //           component: () => import('@/views/variable/variable/index'),
  //           name: 'variableIndex',
  //           meta: {title: '审批意见', icon: '', key: 'lcpt', noCache: true},
  //         },
  //         {
  //           path: '/approval/index',
  //           component: () => import('@/views/approval/index'),
  //           name: 'approvalIndex',
  //           meta: {title: '常用语', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/testBpm',
  //           component: () => import('@/views/bpm/model/testBpm'),
  //           name: 'testBpm',
  //           meta: {title: '自动化流程测试', icon: '', key: 'lcpt', noCache: true},
  //         },
  //         {
  //           path: '/simulation',
  //           component: () => import('@/views/bpm/model/simulation'),
  //           name: 'simulBpm',
  //           meta: {title: '自动化仿真(BPS平台)', icon: '', key: 'lcpt', noCache: true},
  //         },
  //         {
  //           path: '/diffModel',
  //           component: () => import('@/views/bpm/model/diffModel'),
  //           name: 'diffBpm',
  //           meta: {title: '模型对比工具(BPS平台)', icon: '', key: 'lcpt', noCache: true},
  //         },
  //         {
  //           path: 'busModel',
  //           component: () => import('@/views/bpm/model/busModel'),
  //           name: 'busModel',
  //           meta: {title: '模型业务设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/bpmOftenFlow/index',
  //           component: () => import('@/views/bpm/bpmOftenFlow/index'),
  //           name: 'bpmOftenFlow',
  //           meta: {title: '常用流程', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/addBpmOftenFlow/index',
  //           component: () => import('@/views/bpm/bpmOftenFlow/add'),
  //           name: 'addBpmOftenFlow',
  //           meta: {title: '添加常用流程', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/versionManager',
  //           component: () => import('@/views/bpm/model/versionManager'),
  //           name: 'versionManager',
  //           meta: {title: '版本管理', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/runtime/instance/v1/getInstanceLis',
  //           component: () => import('@/views/bpm/taskinstance/index'),
  //           name: 'taskInstance',
  //           meta: {title: '实例管理', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/his/instance/resurrection',
  //           component: () => import('@/views/bpm/resurrection/index'),
  //           name: 'resurrection_instance',
  //           meta: {title: '历史实例复活', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/his/instance/setting',
  //           component: () => import('@/views/bpm/resurrection/setting'),
  //           name: 'resurrection_instance_setting',
  //           meta: {title: '实例复活设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/urging',
  //           component: () => import('@/views/bpm/model/urging'),
  //           name: 'urging_task_setting',
  //           meta: {title: '催办设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/preUser',
  //           component: () => import('@/views/bpm/model/preUser'),
  //           name: 'preUser',
  //           meta: {title: '全局预览插件', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/expire',
  //           component: () => import('@/views/bpm/model/expire'),
  //           name: 'expire_task_setting',
  //           meta: {title: '到期提醒', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/sequenceModel',
  //           component: () => import('@/views/bpm/model/sequenceModel'),
  //           name: 'sequenceModel_setting',
  //           meta: {title: '连线按钮', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/skipModel',
  //           component: () => import('@/views/bpm/model/skipModel'),
  //           name: 'skipModel_setting',
  //           meta: {title: '自动跳过设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/backModel',
  //           component: () => import('@/views/bpm/model/backModel'),
  //           name: 'backModel_setting',
  //           meta: {title: '退回线设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/model/businessFormSettings',
  //           component: () => import('@/views/bpm/model/businessFormSettings'),
  //           name: 'businessFormSettings_setting',
  //           meta: {title: '业务表单设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/messageTemplate/list',
  //           component: () => import('@/views/bpm/messageTemplate/index'),
  //           name: 'messageTemplate',
  //           meta: {title: '流程消息模板', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/script/index',
  //           component: () => import('@/views/bpm/script/index'),
  //           name: 'scriptIndex',
  //           meta: {title: '常用脚本管理', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/agent/setting/index',
  //           component: () => import('@/views/bpm/agent/setting/index'),
  //           name: 'settingIndex',
  //           meta: {title: '委托设置', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/demo/open',
  //           component: () => import('@/views/bpm/demo/open'),
  //           name: 'urlDemoOpen',
  //           meta: {title: '启动', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/url/item',
  //           component: () => import('@/views/bpm/url/item'),
  //           name: 'url_data_item_index',
  //           meta: {title: '表单数据设置', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/extbpm/form/index',
  //           component: () => import('@/views/extbpm/form/index'),
  //           name: 'FormIndex',
  //           meta: {title: '工单管理', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/extbpm/process/BpmAutoDesformApply',
  //           component: () => import('@/views/extbpm/process/BpmAutoDesformApply'),
  //           name: 'BpmAutoDesformApply',
  //           meta: {title: '工单申请', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/monitor/instace/indexArchive',
  //           component: () => import('@/views/bpm/monitor/instace/indexArchive'),
  //           name: 'indexArchive',
  //           meta: {title: '归档流程', icon: '', key: 'lcpt', noCache: true}
  //         }
  //       ]
  //     },
  //     {
  //       path: '/bpm/commu/ruIndex',
  //       name: '阅读事项',
  //       component: ForRouter,
  //       children: [
  //         {
  //           path: '/bpm/commu/ruIndex',
  //           component: () => import('@/views/bpm/commu/ruIndex'),
  //           name: 'commuRuIndex',
  //           meta: {title: '待阅任务', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/commu/hiIndex',
  //           component: () => import('@/views/bpm/commu/hiIndex'),
  //           name: 'commuHiIndex',
  //           meta: {title: '已阅任务', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/commu/details',
  //           component: () => import('@/views/bpm/commu/details'),
  //           name: 'runCommuDetails',
  //           meta: {title: '待阅任务明细', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         },
  //         {
  //           path: '/bpm/commu/Hidetails',
  //           component: () => import('@/views/bpm/commu/hiDetails'),
  //           name: 'hiCommuDetails',
  //           meta: {title: '已阅任务明细', icon: '', key: 'lcpt', noCache: true},
  //           hidden: true
  //         }
  //       ],
  //       hidden: false
  //     },
  //     {
  //       path: '/bpm/msg/ruIndex',
  //       name: '通知事项',
  //       component: ForRouter,
  //       children: [
  //         {
  //           path: '/bpm/msg/ruIndex',
  //           component: () => import('@/views/bpm/msg/ruIndex'),
  //           name: 'msgRuIndex',
  //           meta: {title: '未读消息', icon: '', key: 'lcpt', noCache: true}
  //         },
  //         {
  //           path: '/bpm/msg/hiIndex',
  //           component: () => import('@/views/bpm/msg/hiIndex'),
  //           name: 'HiIndex',
  //           meta: {title: '已读消息', icon: '', key: 'lcpt', noCache: true}
  //         }
  //       ],
  //       hidden: false
  //     },
  //   ]
  // },



  {
    path: '/authoritymanagement',
    name: 'authoritymanagement',
    component: Layout,
    meta: { title: '权限管理', icon: '', noCache: true, key: 'qxgl' },
    children: [
      {
        path: 'index',
        name: 'qxgl',
        meta: { title: '权限管理', icon: '', noCache: true, key: 'qxgl' },
        component: () => import('@/views/backstage/authoritymanagement')
      }
    ]
  },
  //  平台门户
  {
    path: '/zwbg',
    name: 'zwbg',
    component: Layout,
    meta: { title: '政务办公', icon: '', key: 'zwbg' },
    children: [
      {
        path: 'index',
        name: 'zwbg',
        meta: { title: '政务办公', icon: 'star', noCache: true, key: 'zwbg' }
      }
    ]
  },
  {
    path: '/mytodolist',
    name: 'mytodolist',
    component: Layout,
    meta: { title: '我的待办', icon: '', noCache: true, key: 'grzx' },
    children: [
      {
        path: 'mytodolist',
        name: '我的待办',
        meta: { title: '我的待办', icon: '', noCache: true, key: 'grzx' }
      }
    ]
  },
  {
    path: '/myresources',
    name: 'myresources',
    component: Layout,
    meta: { title: '我的资源', icon: '', noCache: true, key: 'grzx' },
    children: [
      {
        path: 'myresources',
        name: '我的资源',
        meta: { title: '我的资源', icon: '', noCache: true, key: 'grzx' }
      }
    ]
  },
  {
    path: '/gmap',
    name: 'gmap',
    component: Layout,
    meta: { title: '一张图', icon: '', noCache: true, key: 'yzt' },
    children: [
      {
        path: 'map2D',
        name: 'map2D',
        meta: { title: '二维地图', icon: 'star', noCache: true },
        component: () => import('@/views/showMap/index'),
      },
      {
        path: 'map3D',
        name: '三维地图',
        meta: { title: '三维地图', icon: 'star', noCache: true },
        component: () => import('@/views/showMap/threeDimensional'),
      }
    ]
  },
  {
    path: '/sas',
    name: 'sas',
    component: Layout,
    meta: { title: '监督监管', icon: '', noCache: true, key: 'jdjg' },
    children: [
      {
        path: 'cockpit',
        name: '业务审批驾驶舱',
        meta: { title: '业务审批驾驶舱', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: 'landlifecycle',
        name: '土地全生命周期监管',
        meta: { title: '土地全生命周期监管', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: 'purpose',
        name: '用途管制监管',
        meta: { title: '用途管制监管', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: 'examination',
        name: '审批效能监察',
        meta: { title: '审批效能监察', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: 'project',
        name: '项目监管决策',
        meta: { title: '项目监管决策', icon: 'star', noCache: true, key: 'jdjg' }
      }
    ]
  },
 

  // { path: '*', redirect: '/404' ,hidden: true }
]

export default new Router({
  routes: commonRouter
})